package net.logax.games.chase;

import net.logax.games.framework.gl.Vertices3;
import net.logax.games.framework.impl.GLGraphics;


/**
 * TODO remove unnecessary bounds
 * @author mrduke
 *
 */
public class Origin extends RenderableGameObject {

	
	public Origin(float x, float y, float z, float radius, GLGraphics glGraphics) {
		super(x, y, z, radius);

		float[] vertices = {
			0.0f,0.0f,0.0f, 1,0,0,1,
			1.0f,0.0f,0.0f, 1,0,0,1,
			0.0f,0.0f,0.0f, 0,1,0,1,
			0.0f,1.0f,0.0f, 0,1,0,1,
			0.0f,0.0f,0.0f, 0,0,1,1,
			0.0f,0.0f,1.0f, 0,0,1,1 };

		short[] indices = {0, 1, 2, 3, 4, 5};
		
		int maxVertices = 6;
		int maxIndices = 6;
		boolean hasTexCoords = false;
		boolean hasNormals = false;
		boolean hasColor = true;
		Vertices3 model = new Vertices3(glGraphics, maxVertices,
				maxIndices, hasColor, hasTexCoords, hasNormals);
		model.setVertices(vertices, 0, vertices.length);
		model.setIndices(indices, 0, indices.length);
		setModel(model);
	}

}
